//
//  PurumClothesViewController.h
//  PurumClothes
//
//  Created by 솔이 박 on 11. 4. 4..
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PurumMinigameDefinition.h"

typedef enum tagViewType
{
	ViewType_Menu,
	ViewType_MiniGame,
	ViewType_ClothItem,
	ViewType_AccessoryItem,
	
} ViewType;


@interface PurumClothesViewController : UIViewController {
	
	// ** main view
	UIView		*mainView;
	UIView		*wearClothView;
	UIImageView *wearClothImage;

	ViewType	viewType;
	
	// ** menu view
	UIView		*menuView;	
	UIButton	*clothButton;
	UIButton	*accessoryButton;
	UIButton	*miniGameButton;

	// ** item view
	
	UIView		*itemView;
	UIButton	*returnButton;
	UIScrollView	*itemListView;
	
	UIButton *itemButtons[10];
	
	NSString *clothTypes[10];
	NSString *faceTypes[10];
	NSString *accessoryTypes[10];

	// ** mini game view
	UIView		*miniGameView;
	
	UIImageView *prGundamImage;
	UIView		*moveAreaView;
	float		moveTouchOffset;
	
	UIButton	*redBulletButton;
	UIButton	*yellowBulletButton;
	UIButton	*blueBulletButton;
	
	NSMutableArray *bulletArray;
	NSMutableArray *enemyArray;
}

// ** main view
@property (nonatomic, retain) IBOutlet UIView *mainView;
@property (nonatomic, retain) IBOutlet UIView *wearClothView;

// ** menu view
@property (nonatomic, retain) IBOutlet UIView *menuView;
@property (nonatomic, retain) IBOutlet UIButton *clothButton;
@property (nonatomic, retain) IBOutlet UIButton *accessoryButton;
@property (nonatomic, retain) IBOutlet UIButton *miniGameButton;

- (IBAction)clothButtonPressed;
- (IBAction)accessoryButtonPressed;
- (IBAction)miniGameButtonPressed;

- (void) initializeFaceItem;
- (void) initializeClothItem;
- (void) initializeAccessoryItem;

- (void) initializeItem : (NSString**)types withSize :(int) size;

// ** item view
@property (nonatomic, retain) IBOutlet UIView *itemView;
@property (nonatomic, retain) IBOutlet UIButton *returnButton;
@property (nonatomic, retain) IBOutlet UIScrollView *itemListView;

- (IBAction) returnButtonPressed;
- (void) itemButtonPressed:(id)sender;

- (void) wearCloth :(int)index;
- (void) wearAccessory :(int) index;

// ** mini game view
@property (nonatomic, retain) IBOutlet UIView *miniGameView;
@property (nonatomic, retain) IBOutlet UIImageView *prGundamImage;
@property (nonatomic, retain) IBOutlet UIView *moveAreaView;
@property (nonatomic, retain) IBOutlet UIButton *redBulletButton;
@property (nonatomic, retain) IBOutlet UIButton *yellowBulletButton;
@property (nonatomic, retain) IBOutlet UIButton *blueBulletButton;

- (IBAction)redBulletButtonPressed;
- (IBAction)yellowBulletButtonPressed;
- (IBAction)blueBulletButtonPressed;

- (void) shotBullet : (BulletType) type;

@end

